<script type="text/javascript" src="http://img3.126.net/caipiao/js/showAd.js?201208120302"></script>
<script type="text/javascript" src="http://img3.126.net/caipiao/js/popup.js?201208120302"></script>
<script type="text/javascript" src="http://img3.126.net/caipiao/js/suggest.js?201208120302"></script>

<!--登录框 开始-->
<div class="urs_login_box" id="login_popup" style="display: none;">
	<!--第一行—顶部*/-->
	<div class="urs_login_top">
		<div class="urs_login_t_m"></div>
	</div>
	<div class="urs_login_t_l"></div>
	<div class="urs_login_t_r"></div>
	<!--第二行—中间内容区*/-->
	<form class="urs_login_form" onsubmit="return false" action="#">
	<div class="urs_login_suggest"> <span class="suggest_box" id="useremail_box">
		<input type="text" class="urs_login_input" id="useremail" autocomplete="off" value="如name@example.com" style="color:#999;"/>
	</span> </div>
	<div class="urs_login_middle">
        <div class="urs_login_m_l"></div>
        <div class="urs_login_m_r"></div>
        <div class="urs_login_context">
            <h3 class="urs_login_title"><span class="f_left">登录网易通行证</span><span class="urs_login_close" id="close1" onclick="loginpopup.closePopup()"></span></h3>
            <div class="urs_login_con">
                <table width="96%" border="0" cellpadding="0" cellspacing="0" class="urs_login_table">
                <tr>
                    <td width="29%" height="44"><div align="right">帐号：</div></td>
                    <td colspan="2"></td>
                </tr>
                <tr>
                  <td height="44"><div align="right">密码：</div></td>
                  <td colspan="2"><input type="password" name="textfield" id="password" class="urs_login_input" onkeydown="if(event.keyCode == 13){$('loginBtn1').click();}"/></td>
                </tr>
                <tr>
                  <td height="16">&nbsp;</td>
                  <td width="35%"><label id="saveloginLabel" for="login_savelogin"><input type="checkbox" value="1" id="login_savelogin" name="savelogin" />两周内自动登录</label></td>
                  <td><a href="http://reg.163.com/RecoverPasswd1.shtml" class="urs_login_link" rel="nofollow">忘记密码？</a></td>
                </tr>
                <tr>
                  <td  height="40">&nbsp;</td>
                  <td><input type="button" name="button" id="loginBtn1" value="登录" class="urs_login_btn" /><input type="hidden" name="domains" value="163.com" /></td>
                  <td><div align="right"><a href="#" onclick="javascript:location.href='http://reg.163.com/reg/reg.jsp?product=caipiao&amp;url='+encodeURIComponent('http://caipiao.163.com/')+'&amp;loginurl='+encodeURIComponent('http://caipiao.163.com/?isShowLogin=1')" class="urs_login_link" rel="nofollow">注册网易通行证&gt;&gt;</a></div></td>
                </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
    <!--第三行—底部*/-->
    <div class="urs_login_b_m"><span style="display:block"></span></div>
    <div class="urs_login_b_l"></div>
    <div class="urs_login_b_r"></div>
</div>
<!--登录框 结束-->

<script type="text/javascript">
//添加登录帐号的记忆功能
function setLoginName(id,id1) {
 var p_info = this.getCookie("P_INFO");
 var cookieValue;
 var cookieName;
 if (p_info != null && p_info != false) {
   cookieValue = p_info.split("|");
   if (cookieValue != null && cookieValue.length > 0) {
	  cookieName = cookieValue[0];
   }
 };
 if (cookieName) {
   document.getElementById(id).style.color = "#000";
   document.getElementById(id).value = cookieName;
   if(document.getElementById(id1)){
	document.getElementById(id1).focus();
   }
 };
};
setLoginName.prototype.getCookie = function(sName) {
var sRE = "(?:; )?" + sName + "=([^;]*);?";
var oRE = new RegExp(sRE);
if (oRE.test(document.cookie)) {
  return decodeURIComponent(RegExp["$1"]);
} else {
   return null;
}
};

var loginpopup = new popup("login_popup","#000",20);//创建新弹窗对象，参数为弹窗ID,遮盖层颜色，透明度
function createPopup(formId)
{
	loginpopup.create(formId);

	if($("useremail")){new setLoginName("useremail","password");}
	
}
//锁屏功能

//popup.create();

//登录帐号输入提示
var email_str=["@163.com","@126.com","@yeah.net","@vip.163.com","@vip.126.com","@popo.163.com","@188.com","@qq.com","@yahoo.com","@sina.com"];
new suggest(email_str,"useremail_box","useremail");

//登录表单验证
Validator = {   
    Email : /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
}

function checkLogin(fm){
    var alt = "";
    if($("useremail").value == "" || $("useremail").value == "如name@example.com"){
        alt += "帐号不能为空\n";
    }
    if($("password").value == ""){alt += "密码不能为空\n";}
    if(alt != ""){alert(alt);return false;}
    createHidden(fm, "ursLoginUserName", $("useremail").value);
    createHidden(fm, "ursLoginUserPass", $("password").value);
    createHidden(fm, "ursLoginSavelogin", $("login_savelogin").checked==true? '1' : '0');
    if(fm.onsubmit&&!fm.onsubmit())
		return false;
	fm.submit();
}

</script>

<!--头部 开始--><span id="tip_box" class="server_tel_tips" style="display:none"></span><!-- 用于提示电话 -->

<div class="header">
    <div class="top_tools">
        <div class="f_left">
        欢迎来到网易彩票！
		<a href="#" onclick="createPopup('headerLoginForm')" rel="nofollow">请登录</a>
		&nbsp;<a href="#" onclick="javascript:location.href='http://reg.163.com/reg/reg.jsp?product=caipiao&url='+encodeURIComponent('http://caipiao.163.com') +'&loginurl='+encodeURIComponent('http://caipiao.163.com/?isShowLogin=1')" rel="nofollow">免费注册</a>
		<form action="/index1.html" id="headerLoginForm" style="display:inline" onsubmit="return true;" method="post">
            <input type="hidden" name="goingToUrl" id="goingToUrl1" />
			<script type="text/javascript">$("headerLoginForm").action="/index2.html";$("goingToUrl1").value=window.location.pathname+window.location.search;</script>
		</form>
        </div>
    </div>
    <div class="head_main">
        <a class="f_left" href="/"><h1><img src="http://img3.126.net/caipiao//images/logo_red.png?201208120302" alt="网易彩票" class="login_logo" title="网易彩票" /></h1></a>
        <!--<a class="guide" href="/mobile/main.jsp" target="_blank" title="客户端下载">客户端下载</a>-->
    </div>
</div> 

<script type="text/javascript">
//必须放在页面底部运行此段js代码
(function(doc){
var allLnk=doc.getElementsByTagName("a"),n=allLnk.length,i=0,para,a;
for(;i<n;i++){
	a = allLnk[i];para = a.getAttribute("cppara") || "";
	para && (a.href += "?"+para,a.removeAttribute("cppara"));
}
})(document);
</script> 	

<!--头部 结束-->
<script type="text/javascript">
    //取得网易相关信息
	var login = false;
	var isShowNotice = false;
	var caipiaoCdnVersionId = 201208120302;
</script>
<script type="text/javascript" src="http://img3.126.net/caipiao/js/cp_header.js?201208120302"></script>

<!--主菜单 开始-->
<div class="nav">
    <div class="main_nav">
    <ul class="menu_list">
      <li class="active"><a href="/">首页</a>|</li>
      <li ><a href="./dating" title="彩票购彩大厅">购彩大厅</a>|</li>
      <li ><a href="/groupbuy/" title="彩票合买大厅">合买大厅</a>|</li>
      <li ><a href="/award/" title="中国彩票开奖">彩票开奖</a>|</li>
      <li ><a href="http://zx.caipiao.163.com/trend/trend.html" title="福彩体彩走势图">走势图</a>|</li>
      <!--
      <li ><a href="http://zx.caipiao.163.com" title="彩票资讯">彩票资讯</a>|</li>
      <li ><a href="/mobile/main.jsp" title="手机购买彩票">手机购彩</a><span class="imgs_phone"></span>|</li>
      <li ><a href="/hit/hit_football_sfc.html?index=1" title="彩票过关统计">过关统计</a></li>-->
    </ul>
    <ul class="right_nav">
        <li>
            <div id="my_cp" class="sublist_close">
            <!--对应关闭样式sublist_close -->
                <div class="sub_title">
                <a href="javascript:" rel="nofollow">
	          		<span onclick="jumpTo('/order/mylottery_info.html', true); return false;">我的彩票</span>
	          	</a>
                <span class="cusp"></span></div>
            <div class="sub_con">
            <p>
				<a href="javascript:" rel="nofollow">
					
					<span onclick="jumpTo('/order/myorder.html', true); return false;">我的订单</span>
					
				</a>
			</p>
            <p>
				<a href="javascript:" rel="nofollow">
					
					<span onclick="jumpTo('/identity/identity.html', true); return false;">我的信息</span>
					
				</a>
			</p>
			<p>
				<a href="javascript:">
					
					<span onclick="jumpTo('/order/myactivity_drawaward.html', true); return false;">我的活动</span>
					
				</a>
			</p>
          </div>
        </div>
      </li>
      <li><a href="http://caipiao.163.com/help/" target="_blank" title="如何购买彩票">如何购彩</a></li>
     
    </ul>
    </div>
<!--主菜单 结束-->